<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/7/2
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>关键字审核</title>
    <%--CSS--%>
    <link rel="stylesheet" type="text/css" href="/static/files/keywordAudit/styles.css">
    <%-- jquery --%>
    <script src="/static/js/jquery.min.js"></script>
    <%--easyUi--%>
    <link rel="stylesheet" type="text/css" href="/static/themes/default/easyui.css">
    <script type="text/javascript" src="/static/js/jquery.easyui.min.js"></script>
    <%--中文样式（不加就只能显示英文）--%>
    <script type="text/javascript" src="/static/js/easyui-lang-zh_CN.js"></script>
</head>
<body>
<h3 id="head">关键字审核</h3>

<div id="box">
    关键词:<input type="text" name="keyword" id="keyword"/>
    <img id="find" src="/static/images/关键词审核/u3.png" alt="">
    <span id="cg">审核流程：已申请（代理商申请）》审核中》通过》续费丨</span>
    <span id="sb">审核流程：已申请（代理商申请）》审核中》不通过</span>
</div>

<table id="showKeyword">

</table>

<script>
    $("#showKeyword").datagrid({
        url:"showPortal",
        pagination:true, // 分页工具
        pageSize:10, // 默认条数
        pageList:[5,10,15,20,25], // 可调显示条数
        fitColumns:true, // 拉宽
//        fit:true, // 拉高度
        singleSelect:true, // 是否支持多选
        toolbar:".wu-toolbar-button", // 工具栏
        // 网络表格
        columns:[[
            {field:'id',title:'序号',width:30},
            {field:'keywords',title:'关键词',width:100},
            {field:'customname',title:'客户名称',width:80},
            {field:'agentname',title:'代理商',width:85},
            {field:'serviceyears',title:'申请年限',width:50},
            {field:'preregdatetime',title:'申请日期',width:110},
            {field:'preregpassdatetime',title:'到期日期',width:110},
            {field:'ispass',title:'申请到期状态',width:70,formatter:function (ispass) {
                return ispass == 0?'不过期':[ispass == 1?'预注册过期':'正式注册过期']
            }},
            {field:'checkstatus',title:'审核状态',width:50,formatter:function(checkstatus){
                return checkstatus == 0?'已申请':[checkstatus == 1?'审核中':[checkstatus == 2?'已通过':'未通过']]
            }},
            {field:'isuse',title:'使用状态',width:45,formatter:function (isuse) {
                return isuse == 0?'未使用':'已使用'
            }}
        ]]
    })


</script>
</body>
</html>
